import request from '@/utils/request'
import { Section } from './type'
const baseUrl = '/section'

export const reqAddSection = (data: Section) =>
  request.post<any, ResponseData>(`${baseUrl}`, data)

export const reqUpdateSection = (data: Section) =>
  request.put<any, ResponseData>(`${baseUrl}`, data)

export const reqDelSection = (data: Section) =>
  request.post<any, ResponseData>(`${baseUrl}/delSection`, data)
